package net.sunxiaolong.tool.captureinsureknowledge.entity;

import lombok.Data;
import org.springframework.context.annotation.Lazy;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import java.io.Serializable;

/**
 * @author 晓龙
 * @create 2018-08-07 下午1:51
 * @desc
 **/
@Data
@Entity
public class CpicKnowledge implements Serializable {

    @Id
    private Long id;

    private String title;

    @Lazy
    @Lob
    private String content;

    private String tag;


    private String href;

    private String baseHref;

    public CpicKnowledge() {
    }

    public CpicKnowledge(Long id, String title, String content, String tag, String href, String baseHref) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.tag = tag;
        this.href = href;
        this.baseHref = baseHref;
    }
}
